package com.example.shixun2;

import java.util.List;

public class Contact {
    private String name;
    private int avatarResId;    //图片资源ID
    private List<Message> messageHistory;

    private boolean isExpanded;     //是否展开

    public Contact(String name, int avatarResId, List<Message> messageHistory ) {
        this.name = name;
        this.avatarResId = avatarResId;
        this.messageHistory = messageHistory;
        this.isExpanded = false;
    }

    public String getName() {
        return name;
    }

    public int getAvatarResId() {
        return avatarResId;
    }

    public List<Message> getMessageHistory() {
        return messageHistory;
    }

    public boolean isExpanded() {
        return isExpanded;
    }

    public void setMessageHistory(List<Message> messageHistory) {
        this.messageHistory = messageHistory;
    }

    public void setAvatarResId(int avatarResId) {
        this.avatarResId = avatarResId;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void setExpanded(boolean expanded) {
        isExpanded = expanded;
    }
}
